import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

/**
 */
export const listTree = params => {
  let data = http.get(PORT1 + `/menu/tree`, params);
  return data;
};

export const addData = params => {
  let data = http.post(PORT1 + `/menu/addData`, params);
  return data;
};

export const updateData = params => {
  let data = http.post(PORT1 + `/menu/updateData`, params);
  return data;
};
